package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.system.api.factory.RemoteSijiFallbackFactory;
import com.ruoyi.system.api.factory.RemoteUserFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(contextId = "remoteSijiService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteSijiFallbackFactory.class)
public interface RemoteSijiService {

    @GetMapping("/dept/getAllDriverByDeptId/{deptId}")
    public AjaxResult getAllDriverByDeptId(@PathVariable("deptId") String deptId);


    @GetMapping("/dept/getFactoryByDeptId/{deptId}")
    public AjaxResult getFactoryByDeptId(@PathVariable("deptId") Integer deptId);
}
